package com.ruoyi.teacher.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 老师任务中间对象 t_task_teacher
 * 
 * @author wwb
 * @date 2022-12-25
 */
public class TaskTeacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskid;

    /** 老师id */
    @Excel(name = "老师id")
    private Long teacherid;

    /** 领取任务时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取任务时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receivetime;

    /** 是否完成 */
    @Excel(name = "是否完成")
    private Integer state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskid(Long taskid) 
    {
        this.taskid = taskid;
    }

    public Long getTaskid() 
    {
        return taskid;
    }
    public void setTeacherid(Long teacherid) 
    {
        this.teacherid = teacherid;
    }

    public Long getTeacherid() 
    {
        return teacherid;
    }
    public void setReceivetime(Date receivetime) 
    {
        this.receivetime = receivetime;
    }

    public Date getReceivetime() 
    {
        return receivetime;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskid", getTaskid())
            .append("teacherid", getTeacherid())
            .append("receivetime", getReceivetime())
            .append("state", getState())
            .toString();
    }
}
